
import httpurl from './httpurl.js'
import requestClient from './request.js'

export default{
    getUserList:function(client,sucCallback){
        requestClient.request(client,httpurl.userList,"GET",null,sucCallback,null,null)
    },
    addUser:function(client,data,sucCallback){
        requestClient.request(client,httpurl.userAdd,"POST",data,sucCallback,null,null)
    },
    updateUserRole:function(client,data,sucCallback){
        requestClient.request(client,httpurl.userRoleUpdate,"POST",data,sucCallback,null,null)
    },
    deleteUser:function(client,data,sucCallback){
        requestClient.request(client,httpurl.userDelete,"POST",data,sucCallback,null,null)
    }
}